<h1>Trabalhos</h1>

<% ready = true %>

<% if ready %>

	<h2>Instruções </h2>

		<%= render :partial => "poster" %>


	<% if logged_in? and current_user.has_attendee? %>

		<h2>Trabalhos enviados:</h2>

		<% for work in @works %>

			<%= render :partial => "model", :locals => { :work => work } %>

		<% end %>

    <br />
    <br />

		<%= link_to 'Novo trabalho', new_work_path, :class => 'button' unless current_user.has_work?%>

	<% else %>

		<%= atendee_required_message %>

	<% end %>


<% else %>

 <p>Em breve.</p>

<% end %>

